package com.net.common.constant;


/**
 * @author hjh
 */
public interface Constant {

    String TIME_OUT = "timeOut";

    String CONNECT = "connect";

    interface MessageType {
        /**
         * 客户端与服务端内部通信的消息
         */
        String INTERNAL = "internal";
        /**
         * 服务的转发浏览器的消息
         */
        String FORWARD = "forward";
        /**
         * 关闭连接消息
         */
        String CLOSE = "close";

        /**
         * 服务端错误消息
         */
        String ERROR = "error";
    }

    interface HttpMethod {

        String GET = "GET";

        String POST = "POST";

        String PUT = "PUT";

        String DELETE = "DELETE";
    }
}
